package com.itwk.gulimall.product.feign;

import com.itwk.common.to.StockTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: wangke
 * @Date: 2021/01/26/下午 3:08
 * @Description:
 */
@FeignClient("gulimall-ware")
public interface WareStockFeign {

    @PostMapping("ware/waresku/stock")
    List<StockTo> hasStock(@RequestBody List<Long> skuIds);
}
